package com.kevin.minio.main;

import com.kevin.minio.config.MinioConfig;
import com.kevin.minio.util.FileUploadClient;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.Map;

/**
 * @author Kevin Liu
 * @date 2020/6/10 9:01 上午
 */
public class MainApplication {

    public static void main(String[] args) {
         AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(MinioConfig.class);
        FileUploadClient markdownFileUploadClient = applicationContext.getBean("markdownFileUploadClient", FileUploadClient.class);
        markdownFileUploadClient.listObjects().forEach(System.out::println);
    }
}
